package com.kcral.javase.ch.properties;

/**
 * @TODO
 * @Author xu
 * 2025/3/3
 */
public class GrandFather {
private String name;
private int age;

    public GrandFather(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public void getGranderFather() {

        System.out.println("我是" + name + "，今年" + age + "岁");
    }

}
